/***************************************************************************
 *   This is a part of the NextCAD Web APP.                                *
 *   Copyright (C) AMCAX, All rights reserved.                             *
 ***************************************************************************/
import { BaseCommand } from '@amcax/base';
import i18n from 'i18next';
import SettingsDialog from './components/settings-dialog';

export const cmdSettings: BaseCommand = {
  id: 'CmdSettings',
  label: 'command.settings',
  icon: 'commands/common/settings',
  create: (label: string, onClose: () => void) => (
    <SettingsDialog
      title={i18n.t(label)}
      onClose={onClose}
    />
  ),
};
